<?php

class modelHolder {
	private $models = array();

	function setStabilityHandler($handler) {
		foreach($this->models as $model) {
			$this->$model->setStabilityHandler($handler);
		}
	}

	function __construct($aether) {
		$this->aether = $aether;
	}

	function add($resource, $name) {
		$this->models = arrayAppend($this->models, array($name));
		$this->$name = $resource;
		$this->$name->init($this->aether);
	}
}

//EOF
